package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: WmNewsMaterialMapper
 * Description:
 * date: 2023/8/9 0009 16:07
 *
 * @author zHan
 */
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {

    void saveRelations(@Param("newsId") Integer newsId,
                       @Param("materialIds") List<Integer> materialIds,
                       @Param("type") Short type);
}
